Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

301
Views
Vue3 ¿Cómo pasar el valor de entrada al método en @change="func(param)"?

Tengo un campo de entrada y necesito llamar a la función cada vez que se cambia el valor y pasar el nuevo valor a la función. No pude encontrar cómo hacerlo.

 <template slot-scope="scope"> <el-input type="text" :value="scope.row.name" v-model="queryName" @change="changeQueryName(scope.row.id, ???.queryName)"> </el-input> </template>
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Puedes pasar el $event

 @change="changeQueryName($event, scope.row.id, ???.queryName)"

Este es el documento HTMLElement: Evento

En la función changeQueryName() puede usar event.target.value

 changeQueryName(event, id, queryName) { console.log(event.target.value) }
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!